package com.biz.primus.model.oms.vo;

import com.biz.primus.model.oms.enums.OrderTimeoutCause;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 超时记录处理
 *
 * @author yanweijin
 * @date 2017/11/24
 */
@ApiModel("订单超时记录处理请求")
@Data
public class TimeoutRecordHandleRequest extends OmsOperationRequest{

	@ApiModel("处理动作")
	public enum HandleAction{
		@ApiModelProperty("开始处理一条记录")
		begin,
		@ApiModelProperty("取消处理一条记录")
		cancel,
		@ApiModelProperty("处理完成一条记录")
		finish
	}


	@ApiModelProperty(value="record id的字符串形式,必须是一个64位数字",required = true)
	private String recordIdString;

	@ApiModelProperty(value="请求动作:开始处理,取消处理,完成处理,其中,action=finish时,要求传递cause和handleResult",required = true)
	private HandleAction action;

	@ApiModelProperty(value="超时原因")
	private OrderTimeoutCause cause;

	@ApiModelProperty(value="处理结果")
	private String handleResult;


}
